import json

data={
    "task": {
        "app_name": "action_recgnition_template",
        "app_version": 1,
        "context_id": "10002022111807105628701",
        "userkey": "dwhtumble",
        "callback": {
            "type": 1,
            "data": {
                "value": "{\"topic\": \"tumble\"}"
            },
            "oss_config": {
                "type": 2,
                "format": "10000/account-2/device1/assignment1/%Y/%m/%d",
                "data": {
                    "value": "{\"bucket\": \"ars\"}"
                }
            }
        },
        "source": {
            "type": 1,
            "address": "rtsp://10.4.243.44:30555/tumble_test1.mp4",
            "data": {
                "value": "{}"
            }
        },
        "data": {
            "value": "{\"ctx_id\": \"10002022111807105628701\", \"image\": \"ars/10000/account-2/device1/assignment1/2022/11/18/20221118-89301cda-0a580af4a85a-0000000b-001bbcf1\", \"confidence\": 0.9999830722808838, \"type\": \"tumble\", \"roi\": {\"height\": 120, \"left\": 992, \"top\": 328, \"width\": 65}}"
        },
        "extra_info": "async sample"
    }
}

print(type(data))
print(json.dumps(data))
print(type(json.dumps(data)))